package com.lg.erp.service.chenximou;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lg.erp.entity.chenximou.Order;

import java.util.List;

public interface IOrderService extends IService<Order> {
    //分页查询订单
    IPage<Order> selectOrderByPage(Page<Order> page,String key);
    
    //查询所有
    List<Order> selectAllOrder();
    
    //删除
    boolean removeOrderById(String id);
    
    //新增
    boolean saveOrder(Order order);

    //修改
    boolean updateOrder(Order order);
    
    //模糊查询
    List<Order> selectOrderByConditions(String orderId,String dateValue);
    
    //状态查询
    List<Order> selectOrderByStatus(Order order);

    //状态查询
    List<Order> selectOrderByStatus2(Order order);

    //分页查询排单订单
    IPage<Order> selectOrderByStatusPage(Page<Order> page,Order order,String key);

    //修改待排单为待生产
    boolean updateOrderStatusById(Order order);
}
